package com.woniu.cinema.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.common.annotation.Excel;
import com.woniu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 电影和影厅排片对象 tb_hall_movie
 * 
 * @author yy
 * @date 2021-04-16
 */
public class HallMovie extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long hallMovieId;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    /** 影厅id */
    @Excel(name = "影厅id")
    private Long hallId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 票价 */
    @Excel(name = "票价")
    private Long fareMoney;

    public void setHallMovieId(Long hallMovieId) 
    {
        this.hallMovieId = hallMovieId;
    }

    public Long getHallMovieId() 
    {
        return hallMovieId;
    }
    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }
    public void setHallId(Long hallId) 
    {
        this.hallId = hallId;
    }

    public Long getHallId() 
    {
        return hallId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setFareMoney(Long fareMoney) 
    {
        this.fareMoney = fareMoney;
    }

    public Long getFareMoney() 
    {
        return fareMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("hallMovieId", getHallMovieId())
            .append("movieId", getMovieId())
            .append("hallId", getHallId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("fareMoney", getFareMoney())
            .toString();
    }
}
